<template>
    <div>
        login
        <button @click="handleLogin">登录</button>
    </div>
</template>
<script>
export default {
  methods: {
    handleLogin () {
      setTimeout(() => {
        localStorage.setItem('token', '厚度按返回')
        console.log(this.$route.query.redirect)
        // this.$router.back()
        this.$router.push(this.$route.query.redirect)
      }, 1000)
    }
  }
}
</script>
